package com.songlanyun.modules.userbankcard.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import com.songlanyun.common.drive.RootEntity;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * 银行卡图标管理
 * 
 * @author lubo
 * @email sunlightcs@gmail.com
 * @date 2020-12-14 14:56:29
 */
@Data
@TableName("yxt_user_bank_card_icon")
public class BankCardIconEntity extends RootEntity<Long,BankCardIconEntity> implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId
	private Long id;
	/**
	 * 银行卡名称
	 */
	@NotBlank(message = "银行卡名称不能为空")
	@Length(min = 1,max = 10,message = "银行卡名称长度在1-10个字")
	private String name;
	/**
	 * 缩写
	 */
	@Length(max = 20,message = "银行卡缩写长度在1-10个字")
	private String acronym;
	/**
	 * 图标
	 */
	@NotBlank(message = "图标不能为空")
	private String icon;
	/**
	 *
	 */
	@TableField(fill = FieldFill.INSERT)
	private Date createTime;
	/**
	 *
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private Date updateTime;
	/**
	 * 排序号
	 */
	@NotBlank(message = "排序号不能为空")
	private Integer sort;
	/**
	 *
	 */
	@TableLogic
	private Integer deleted;

	@Override
	public Long getIdentity() {
		return id;
	}
}
